﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SmesharikiMVC.Models.VideoCollection
{
    public class AlbumVideo
    {
        public int AlbumVideoID { get; set; }

        [Required]
        [ForeignKey("VideoAlbum")]
        [Remote("CheckMaxAlbumNumber", "Validation")]
        public int VideoAlbumID { get; set; }
        public VideoAlbum VideoAlbum { get; set; }

        [Required]
        [ForeignKey("YoutubeVideo")]
        public int YoutubeVideoID { get; set; }
        public YoutubeVideo YoutubeVideo { get; set; }

    }
}